import http from "@/utils/http.js"

const url = {
    // 分页查询消息列表
    messageList: "/message/messageList",
    // 删除消息
    deleteMessage: "/message/deleteMessage",
    // 查阅消息
    readMessage: "/message/readMessage",
}

export default {
    url: url,
    // 分页查询消息列表
    messageList(params) {
        return http.post(url.messageList, params)
    },
    // 删除消息
    deleteMessage(params) {
        return http.post(url.deleteMessage, params)
    },
    // 查阅消息
    readMessage(params) {
        return http.post(url.readMessage, params)
    },
}